package com.always.electrical.energy.mqtt.res;

import com.always.electrical.energy.mqtt.MqttTask;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ToString(callSuper = true)
public class MqttTaskRes<RES extends MqttResponse> extends MqttTask<RES> {

    private RES body;

    private RES serviceProperties;

    // 回复时间
    private String eventTime;

    // 正常回复时为 0
    @JsonProperty("errcode")
    private Integer errCode;
}
